package com.handong.handserialprogram.module.web.offline;

import android.view.View;
import android.widget.TextView;

import com.handong.handserialprogram.R;
import com.handong.handserialprogram.constants.KeyConstant;
import com.handong.handserialprogram.module.base.BaseActivity;

/**
 * 无网扫描脚环二维码介绍界面
 * Created by userKey on 2018/7/16.
 */

public class FRIntroduceActivity extends BaseActivity<FRIntroducePresenter> implements FRIntroduceView {

    private TextView codeTV;
    @Override
    protected int getContentViewID() {
        return R.layout.activity_fr_introduce;
    }

    @Override
    protected FRIntroducePresenter createPresenter() {
        return new FRIntroducePresenter(this);
    }

    @Override
    protected void initViewByID() {
        codeTV=findView(R.id.codeTV);

    }

    @Override
    protected void initViewDataRes() {
        initHeaderLayout(false);
        setCenterTitle("脚环简介");
        String code= getIntent().getExtras().getString(KeyConstant.QR_FOOT_CODE);
        codeTV.setText("脚环编号："+code);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.headerBackLayout:
                finish();
                break;
        }
    }
}
